﻿using XLAdapter = Karma.Framework.Core.Domain.Tools.Export.Adapter;
using Karma.Framework.Core.Services.Invoker.Adapter;
using Ninject.Conditions;
using Ninject.Core;

namespace Karma.Framework.Core.Domain.Tools.Export
{
    public class ExportModule: StandardModule
    {
        public override void Load()
        {
            Bind<IAdapter>().To<XLAdapter.HttpAdapter>().Only(When.Context.Variable("XL").IsDefined);
            Bind<IExcelFileBuilder>().To<ExcelFileBuilder>();
        }
    }
}
